
package com.intretech.umsin.system.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.intretech.umsin.datasource.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;


 /**
 * @version V1.0
 * 部门/组织/机构管理:sys_dept 对应实体类.
 * @ClassName: SysDept
 * @Description: 部门/组织/机构管理:sys_dept 对应实体类.
 * @author: 李启联
 * @date:   2022-8-16 16:25:06
 * @Copyright: Copyright (c) 2022
 */
@TableName("`sys_dept`")
public class SysDeptEntity extends BaseEntity {
   // 部门/组织代码
   @TableField(value = "code")
   private String code;
   // 部门/组织名称
   @TableField(value = "name")
   private String name;
   // 上级id，一级为null
   @TableField(value = "parent_id")
   private Long parentId;
   // 排序
   @TableField(value = "order_num")
   private Integer orderNum;
   // 是否删除  1：已删除  0：正常
   @TableField(value = "if_del")
   private Boolean ifDel;
   // 部门/组织路径
   @TableField(value = "path")
   private String path;
   // 组织类型
   @TableField(value = "type")
   private String type;

   public String getCode(){
        return this.code;
   }
   public void setCode(String code){
        this.code = code;
   }
   public String getName(){
        return this.name;
   }
   public void setName(String name){
        this.name = name;
   }
   public Long getParentId(){
        return this.parentId;
   }
   public void setParentId(Long parentId){
        this.parentId = parentId;
   }
   public Integer getOrderNum(){
        return this.orderNum;
   }
   public void setOrderNum(Integer orderNum){
        this.orderNum = orderNum;
   }
   public Boolean getIfDel(){
        return this.ifDel;
   }
   public void setIfDel(Boolean ifDel){
        this.ifDel = ifDel;
   }
   public String getPath(){
        return this.path;
   }
   public void setPath(String path){
        this.path = path;
   }
   public String getType(){
        return this.type;
   }
   public void setType(String type){
        this.type = type;
   }

  public SysDeptEntity(){
  }


  @Override
  public String toString(){
  return " SysDept ["
    +" code = " +code +" ,"
    +" name = " +name +" ,"
    +" parentId = " +parentId +" ,"
    +" orderNum = " +orderNum +" ,"
    +" ifDel = " +ifDel +" ,"
    +" path = " +path +" ,"
    +" type = " +type +" ,"
  +" ]";
  }
}